In this tutorial we consider how to convert single-user worlds to multi-user chat worlds. There are two steps to do this :

Once you've made these changes, you can see avatars of other people and also chat. Remember however that at this point each client has a local copy of the world in which all events, triggers etc. are purely local and move at the speed of the client's computer. So if two users are in local copies of a solar system the planets will be at different positions for each of them, which means x may see strange effects like a planet passing through the avatar of y (in y's world the planet is elsewhere so y doesn't feel the need to move). Obviously if x agrees to meet y by Mars they are talking of two different positions completely.

In Tutorial 7 we will discuss how to synchronize and share events using CP's Java library of remote procedure calls.


Written by Jai Natarajan